import { defHttp } from '/@/utils/http/axios';

enum Api {
  createProjectGroup = '/project/group',
  getProjects = '/project',
  deleteProjectGroup = '/project/delete',
}

export const createProjectGroup = (data) =>
  defHttp.post({
    url: Api.createProjectGroup,
    data,
  });

export const getProjects = () =>
  defHttp.post({
    url: Api.getProjects,
  });

export const deleteProjectGroup = () =>
  defHttp.delete({
    url: Api.deleteProjectGroup,
  });
